<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>

<form:form id="userListForm" method="POST" commandName="user">

	<form:hidden path="id"/>
	
<div>
	<table>
		<tr>
			<td>
				<form:input id="fromdate" path="fromdate" size="8"/><img id="fromCalendar" src="<c:url value='/images/egovframework/cmm/sym/cal/bu_icon_carlendar.gif' />"  style="cursor:pointer;"> ~ 
				<form:input id="enddate" path="enddate" size="8"/><img id="endCalendar" src="<c:url value='/images/egovframework/cmm/sym/cal/bu_icon_carlendar.gif' />"  style="cursor:pointer;">
			</td>
			<td>상위코드</td>
			<td>
				<form:select path="code_type">
					<form:option value="" label="전체"/>
					<form:options items="${codeTypeList}" itemValue="code" itemLabel="code_name" />
				</form:select>
			</td>
			<td>하위코드</td>
			<td>				
				<form:select path="code">
					<form:option value="" label="전체"/>
				</form:select>
			</td>
			<td><input type="image" src="<c:url value='/images/btn/btn_search.gif' />" id="btnSearch" style="cursor:pointer;" /></td>
		</tr>
	</table>
</div>
<div>
	<table>
	  <tr>
	    <th>아이디</th>
	    <th>비밀번호</th>
	    <th>이름</th>
	  </tr>	
	<c:forEach items="${userList}" var="user">
	  <tr>
	    <td>${user.id}</td>
	    <td>${user.password}</td>
	    <td><a href="javascript:goModify('${user.id}')">${user.name}</a></td>
	  </tr>
	</c:forEach>  
	</table>
</div>
<div>
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="goPage"/>
<form:hidden path="pageNo" value="${paginationInfo.currentPageNo}" />
</div>
<div>
	<input type="button" value="등록" onclick="javascript:goAdd();" /> 
</div>
</form:form>